﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using CMP.ERP.Model;
using CMP.ERP.DAL;

namespace CMP.ERP.BLL
{
    public class ExpressCompanyBLL
    {
        /// <summary>
        /// 实例化ExpressCompanyDAL对象
        /// </summary>
        ExpressCompanyDAL dal = new ExpressCompanyDAL();

        /// <summary>
        /// 显示快递公司信息
        /// </summary>
        /// <returns></returns>
        public DataTable ExpressCompanyShow()
        {
            return dal.ExpressCompanyShow();
        }
        /// <summary>
        /// 添加快递公司信息
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int AddExpressCompany(ExpressCompany e)
        {
            return dal.AddExpressCompany(e);
        }
        /// <summary>
        /// 根据快递编码删除快递公司信息
        /// </summary>
        /// <param name="Express_Company_Id">快递编码</param>
        /// <returns></returns>
        public int DelExpressCompany(int Express_Company_Id)
        {
            return dal.DelExpressCompany(Express_Company_Id);
        }
        /// <summary>
        /// 根据快递编码查询快递公司信息
        /// </summary>
        /// <param name="Express_Company_Id">快递编码</param>
        /// <returns></returns>
        public DataTable GetExpressCompany(int Express_Company_Id)
        {
            return dal.GetExpressCompany(Express_Company_Id);
        }
        /// <summary>
        /// 修改快递公司信息
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int UpdExpressCompany(ExpressCompany e)
        {
            return dal.UpdExpressCompany(e);
        }
        /// <summary>
        /// 根据快递公司名称查询信息
        /// </summary>
        /// <param name="Express_Company_Name">快递公司名称</param>
        /// <returns></returns>
        public DataTable SelExpressCompany(string Express_Company_Name)
        {
            return dal.SelExpressCompany(Express_Company_Name);
        }
    }
}
